╬πδαΓδσφΦσ

Layout Manager
╨σµΦ∞√
FlowLayout
GridLayout
BorderLayout
CardLayout
GridBagLayout
└∩δσ≥ FormLayout

    ╨σµΦ∞ BorderLayout

    ╧≡Φ Φ±∩εδⁿτεΓαφΦΦ ≡σµΦ∞α BorderLayout εΩφε Ωεφ≥σΘφσ≡α ≡ατΣσδ σ≥±  φα ≡α∞Ω≤ Φ ÷σφ≥≡αδⁿφ≤■ ≈α±≥ⁿ. ╧≡Φ ≡ατ∞σ∙σφΦΦ Ωε∞∩εφσφ≥ ≤Ωατ√Γασ≥±  φα∩≡αΓδσφΦσ ε≥ ÷σφ≥≡α εΩφα, Γ Ωε≥ε≡ε∞ ±δ≤Σ≤σ≥ ≡ατ∞σ∙α≥ⁿ Ωε∞∩εφσφ≥√.

    ╩εφ±≥≡≤Ω≥ε≡√ Ωδα±±α BorderLayout

    ═Φµσ ∩≡ΦΓσΣσφε Ω≡α≥Ωεσ ε∩Φ±αφΦσ Ωεφ±≥≡≤Ω≥ε≡εΓ Ωδα±±α BorderLayout.

    public BorderLayout();	
    public BorderLayout(int hgap, int vgap); 

    ▌≥Φ Ωεφ±≥≡≤Ω≥ε≡√ ∩≡σΣφατφα≈σφ√ Σδ  ±ετΣαφΦ  ±⌡σ∞√ ≡ατ∞σ∙σφΦ , ßστ τατε≡α ∞σµΣ≤ Ωε∞∩εφσφ≥α∞Φ Φ ± τατε≡ε∞ ταΣαφφεΘ ΓσδΦ≈Φφ√,±εε≥Γσ≥±≥Γσφφε.

    ╠σ≥εΣ√ Ωδα±±α BorderLayout

    ╧σ≡σ≈Φ±δΦ∞ ≥αΩµσ ∞σ≥εΣ√ Ωδα±±α BorderLayout:

    public void  addLayoutComponent(
      String name, Component comp);
    public void layoutContainer(
      Container target); 
    public Dimension minimumLayoutSize(
      Container target); 
    public Dimension preferredLayoutSize(
      Container target); 
    public void removeLayoutComponent(
      Component comp); 
    public String toString();

    ╧≡Φ∞σφσφΦσ Ωδα±±α BorderLayout

    ─εßαΓδ   Ωε∞∩εφσφ≥√ Ω Ωεφ≥σΘφσ≡≤, Γ√ Σεδµφ√ Φ±∩εδⁿτεΓα≥ⁿ ∞σ≥εΣ add ± ΣΓ≤∞  ∩α≡α∞σ≥≡α∞Φ, ∩σ≡Γ√Θ Φτ Ωε≥ε≡√⌡ ≤Ωατ√Γασ≥ φα∩≡αΓδσφΦσ ≡ατ∞σ∙σφΦ , α Γ≥ε≡εΘ - ±±√δΩ≤ φα ΣεßαΓδ σ∞√Θ εß·σΩ≥:

    add("North",  btn1);
    add("East",   btn2);
    add("West",   btn3);
    add("South",  btn4);
    add("Center", btn5);


Java | ╧≡εΣ≤Ω≥√ Φ ≡σ°σφΦ  | ╥σ⌡φεδεπΦΦ | ╤σ≡ΓΦ± Φ εß≤≈σφΦσ
╬ Ωε∞∩αφΦΦ | ╧α≡≥φσ≡√ | ═εΓε±≥Φ | ╧εΦ±Ω
Sun Microsystems Inc. Corporate Information Our partners News and Events Search on site Java Computing Products and Solutions Technologies and Researches Education and Service Content